package pbf.util;

/**
 *
 * @author Ricardo
 */
public class ValidaString
{
    public static void protecaoContraAspas(java.awt.event.KeyEvent evt)
    {
        if(!Character.isLetter(evt.getKeyChar()))
         {
            if(!Character.isSpaceChar(evt.getKeyChar()))
            {
                evt.consume();
            }
         }
        evt.setKeyChar(Character.toUpperCase(evt.getKeyChar()));
    }
}
